package com.ruoyi.etp.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.etp.mapper.EtpEmployeeQualityCheckMapper;
import com.ruoyi.etp.domain.EtpEmployeeQualityCheck;
import com.ruoyi.etp.service.IEtpEmployeeQualityCheckService;

/**
 * 员工质检命中项分析Service业务层处理
 * 
 * @author xmj
 * @date 2025-09-12
 */
@Service
public class EtpEmployeeQualityCheckServiceImpl implements IEtpEmployeeQualityCheckService 
{
    @Autowired
    private EtpEmployeeQualityCheckMapper etpEmployeeQualityCheckMapper;

    /**
     * 查询员工质检命中项分析
     * 
     * @param id 员工质检命中项分析主键
     * @return 员工质检命中项分析
     */
    @Override
    public EtpEmployeeQualityCheck selectEtpEmployeeQualityCheckById(Long id)
    {
        return etpEmployeeQualityCheckMapper.selectEtpEmployeeQualityCheckById(id);
    }

    /**
     * 查询员工质检命中项分析列表
     * 
     * @param etpEmployeeQualityCheck 员工质检命中项分析
     * @return 员工质检命中项分析
     */
    @Override
    public List<EtpEmployeeQualityCheck> selectEtpEmployeeQualityCheckList(EtpEmployeeQualityCheck etpEmployeeQualityCheck)
    {
        return etpEmployeeQualityCheckMapper.selectEtpEmployeeQualityCheckList(etpEmployeeQualityCheck);
    }

    /**
     * 新增员工质检命中项分析
     * 
     * @param etpEmployeeQualityCheck 员工质检命中项分析
     * @return 结果
     */
    @Override
    public int insertEtpEmployeeQualityCheck(EtpEmployeeQualityCheck etpEmployeeQualityCheck)
    {
        return etpEmployeeQualityCheckMapper.insertEtpEmployeeQualityCheck(etpEmployeeQualityCheck);
    }

    /**
     * 修改员工质检命中项分析
     * 
     * @param etpEmployeeQualityCheck 员工质检命中项分析
     * @return 结果
     */
    @Override
    public int updateEtpEmployeeQualityCheck(EtpEmployeeQualityCheck etpEmployeeQualityCheck)
    {
        etpEmployeeQualityCheck.setUpdateTime(DateUtils.getNowDate());
        return etpEmployeeQualityCheckMapper.updateEtpEmployeeQualityCheck(etpEmployeeQualityCheck);
    }

    /**
     * 批量删除员工质检命中项分析
     * 
     * @param ids 需要删除的员工质检命中项分析主键
     * @return 结果
     */
    @Override
    public int deleteEtpEmployeeQualityCheckByIds(Long[] ids)
    {
        return etpEmployeeQualityCheckMapper.deleteEtpEmployeeQualityCheckByIds(ids);
    }

    /**
     * 删除员工质检命中项分析信息
     * 
     * @param id 员工质检命中项分析主键
     * @return 结果
     */
    @Override
    public int deleteEtpEmployeeQualityCheckById(Long id)
    {
        return etpEmployeeQualityCheckMapper.deleteEtpEmployeeQualityCheckById(id);
    }
}
